package com.tencent.sr.iris.activity.interfaces.request.task.scrm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
@ApiModel("团长任务统一作业平台列表请求")
public class MarketTaskScrmRequest {

    @NotEmpty(message = "unionId必传")
    private String unionId;

    @NotEmpty(message = "uid必传")
    private String uid;

    @ApiModelProperty("活动开始时间")
    private String startTime;

    @ApiModelProperty("活动结束时间")
    private String endTime;

    private String requestSource;

    public static MarketTaskScrmRequest getInstance(String uid, String unionId, String date) {
        MarketTaskScrmRequest request = new MarketTaskScrmRequest();
        request.setUid(uid);
        request.setUnionId(unionId);
        request.setStartTime(date);
        request.setEndTime(date);
        request.setRequestSource("iris");

        return request;
    }
}
